package top.yifengxiner.admin.web.controller.system;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import top.yifengxiner.common.core.pojo.AjaxResult;
import top.yifengxiner.common.core.pojo.vo.RegisterBody;
import top.yifengxiner.framework.shiro.service.SysRegisterService;

/**
 * @author ：baixiao
 * @date ：Created in 2021/5/6 10:10
 * @description：注册实体类
 * @modified By：
 * @version: 0.0.1$
 */
@RestController
public class SysRegisterController
{

    @Autowired
    private SysRegisterService registerService;

    @PostMapping("/register")
    public AjaxResult register(@RequestBody RegisterBody registerBody)
    {
        return registerService.register(registerBody);
    }
}
